switch to write-biased r/w locks
authorKeir Fraser <keir@xen.org>
Mon, 8 Dec 2014 13:45:46 +0000 (14:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Dec 2014 13:45:46 +0000 (14:45 +0100)
commit2a549b9c8aa48dc39d7c97e5a93978b781b3a1db
tree768418e05a728783087866ccd9612f44dcf5dd0a
parent10e7747bca538205555e313574432f231070153b
switch to write-biased r/w locks

This is to improve fairness: A permanent flow of read acquires can
otherwise lock out eventual writers indefinitely.

This is CVE-2014-9065 / XSA-114.

Signed-off-by: Keir Fraser <keir@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/spinlock.c
xen/include/asm-arm/arm32/spinlock.h
xen/include/asm-arm/arm64/spinlock.h
xen/include/asm-x86/spinlock.h
xen/include/xen/spinlock.h